TSource
IdeaBlade DevForce 2010 Help Reference
SelectMany<TSource>(IQueryable<TSource>,IProjectionSelector) Method
See Also  Example Send Feedback
IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > QueryableExtensions Class > SelectMany Method : SelectMany<TSource>(IQueryable<TSource>,IProjectionSelector) Method



source
selector
Projects each element of a sequence to an System.Collections.Generic.IQueryable{T} and combines the resulting sequences into one sequence.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Overloads Shared Function SelectMany(Of TSource)( _
   ByVal source As IQueryable(Of TSource), _
   ByVal selector As IProjectionSelector _
) As IQueryable
Visual Basic (Usage)Copy Code
Dim source As IQueryable(Of TSource)
Dim selector As IProjectionSelector
Dim value As IQueryable
 
value = QueryableExtensions.SelectMany(Of TSource)(source, selector)
C++/CLI 
[ExtensionAttribute()]
public:
static IQueryable^ SelectManygeneric<typename TSource>
( 
   IQueryable<TSource^>^ source,
   IProjectionSelector^ selector
) 

Parameters

source
selector

Type Parameters

TSource

Example

C#Copy Code
var mgr = new DomainModelEntityManager();

var baseQuery = mgr.Customers;
var query = baseQuery.Take(2).SelectMany(new ProjectionSelector("OrderSummaries"));
var results = query.Execute();

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.